require "migration_helpers"
class CreateLanguages < ActiveRecord::Migration
  extend MigrationHelpers
  def self.up
    create_table :languages do |t|
      t.column :language_encoding_id, :integer
      t.column :meta_id, :integer
    end
    foreign_key(:languages, :language_encoding_id, :language_encodings)
    foreign_key(:languages, :meta_id, :metas)
  end

  def self.down
    drop_table :languages
  end
end
